package xin.clips.system.domain.gy;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import xin.clips.common.annotation.Excel;
import xin.clips.common.core.domain.BaseEntity;

/**
 * 知识库类型对象 gy_know_base_type
 * 
 * @author yuanzy
 * @date 2023-02-28
 */
public class GyKnowBaseType extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 知识库类型 */
    @Excel(name = "知识库类型")
    private String knowTypeName;

    /** 备注 */
    @Excel(name = "备注")
    private String memo;

    /** 上级id */
    @Excel(name = "上级id")
    private Long parentId;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderByNo;

    /** 排除编号 */
    private Long excludeId;


    /*父级知识类型名字*/
    private String parentName;

    /*祖籍列表*/
    private String ancestors;

    public String getAncestors() {
        return ancestors;
    }

    public void setAncestors(String ancestors) {
        this.ancestors = ancestors;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getKnowTypeName() {
        return knowTypeName;
    }

    public void setKnowTypeName(String knowTypeName) {
        this.knowTypeName = knowTypeName;
    }

    public void setMemo(String memo)
    {
        this.memo = memo;
    }

    public String getMemo() 
    {
        return memo;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getExcludeId() {
        return excludeId;
    }

    public void setExcludeId(Long excludeId) {
        this.excludeId = excludeId;
    }

    public void setOrderByNo(Long orderByNo)
    {
        this.orderByNo = orderByNo;
    }

    public Long getOrderByNo() 
    {
        return orderByNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())

            .append("memo", getMemo())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("parentId", getParentId())
            .append("orderByNo", getOrderByNo())
            .toString();
    }
}
